//mock/api.ts
export default {
  'GET /user/list': {
    code: 0,
    message: 'success',
    data: [
      {
        id: 1,
        name: 'zs',
        age: '23',
        job: '前端工程师',
      },
      {
        id: 2,
        name: 'ww',
        age: '24',
        job: '后端工程师',
      },
    ],
  },
  'GET /admin/goods': {
    code: 0,
    msg: '操作成功',
    data: {
      productDetail: {
        id: 1,
        name: '苹果',
        coverUrl:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
        price: 10.98,
        isOver: false,
        isCollect: false,
        description:
          '【仅限深圳同城地区】新鲜水果上市 大荔冬枣 5斤/箱 枣香枣脆等你抢购【商品名称】',
        imgs: [],
        weight: 3,
        unit: 'kg',
        note: '山东一手货源',
        content: '<p>好得很</p>',
      },
    },
  },

  /** 创建订单 */
  // 'POST /api/userkey/order/add': (req: any, res) => {
  //   // console.log(req)
  //   const requestBody = req.body // 获取请求体数据
  //   // 在这里可以对请求体数据进行处理
  //   console.log('1', requestBody)
  //   // 返回模拟数据或者其他响应
  //   res.json({
  //     code: 1,
  //     message: 'success',
  //     data: { ...requestBody, orderId: 11111 }, // 返回请求体数据
  //   })
  // },
  'POST /userkey/order/add': {
    code: 0,
    msg: 'success',
    data: {
      orderId: 2024538809119985733,
    },
  },
  'GET /order/api/v1/order/getOrderById': {
    code: 0,
    msg: 'success',
    data: {
      orderDetail: {
        id: 1781315868966367235,
        userId: 4485554740750336,
        productId: 9,
        productName: '酒热歌人格改变他人沟通过后突然回过头然后人格化后他吧r',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        count: 10,
        price: 1999.0,
        payMethod: '余额支付',
        receiverName: '云天',
        receiverPhone: '18107124185',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T06:39:58.000+00:00',
        updateTime: '2024-04-21T06:39:59.000+00:00',
        payTime: '2024-04-21 06:41:34',
        description: '52°',
        imgs: '["https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg","https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg"]',
        weight: 1.0,
        unit: 'kg',
        note: '好喝',
        content: '<p>saa</p>',
      },
    },
  },
  /**
   * 支付订单
   */
  'POST /order/api/v1/order/pay': {
    code: 0,
    msg: 'success',
    data: null,
  },
  /**
   * 用户取消订单
   */
  'PUT /order/api/v1/order/cancel': {
    code: 0,
    msg: 'success',
    data: null,
  },
  /**
   * 用户查看自己的所有订单
   */
  'GET /order/api/v1/order/getMyOrder': {
    code: 0,
    msg: 'success',
    data: [
      {
        id: 2024538779423014981,
        userId: 4485554740750336,
        productId: 11,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367234,
        count: 3,
        price: 5997.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T04:39:07.000+00:00',
        updateTime: '2024-04-21T04:39:09.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538783324344389,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T04:55:00.000+00:00',
        updateTime: '2024-04-21T04:55:01.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538783782391877,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T04:56:54.000+00:00',
        updateTime: '2024-04-21T04:56:56.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538784125308997,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T04:58:15.000+00:00',
        updateTime: '2024-04-21T04:58:17.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538784415428677,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T04:59:26.000+00:00',
        updateTime: '2024-04-21T04:59:27.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538785125171269,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:02:23.000+00:00',
        updateTime: '2024-04-21T05:02:37.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538785618600005,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:04:20.000+00:00',
        updateTime: '2024-04-21T05:04:21.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538785756074053,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:04:53.000+00:00',
        updateTime: '2024-04-21T05:04:55.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538786165813317,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:06:33.000+00:00',
        updateTime: '2024-04-21T05:06:35.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538786550575173,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:08:07.000+00:00',
        updateTime: '2024-04-21T05:08:09.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538786642300997,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T05:08:30.000+00:00',
        updateTime: '2024-04-21T05:08:31.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538786777276485,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:09:03.000+00:00',
        updateTime: '2024-04-21T05:09:04.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538786938789957,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T05:09:42.000+00:00',
        updateTime: '2024-04-21T05:09:43.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538787118690373,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T05:10:26.000+00:00',
        updateTime: '2024-04-21T05:10:27.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538787449913413,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T05:11:47.000+00:00',
        updateTime: '2024-04-21T05:11:48.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538787834302533,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T05:13:21.000+00:00',
        updateTime: '2024-04-21T05:13:22.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538799565336645,
        userId: 4485554740750336,
        productId: 10,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367236,
        count: 1,
        price: 1999.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124184',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T06:01:05.000+00:00',
        updateTime: '2024-04-21T06:01:06.000+00:00',
        payTime: null,
        isDelete: false,
      },
      {
        id: 2024538806815445061,
        userId: 4485554740750336,
        productId: 9,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367235,
        count: 1,
        price: 1999.0,
        payMethod: '微信支付',
        receiverName: '云天',
        receiverPhone: '18107124185',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T06:30:35.000+00:00',
        updateTime: '2024-04-21T06:30:37.000+00:00',
        payTime: '2024-04-21T06:36:11.000+00:00',
        isDelete: false,
      },
      {
        id: 2024538808813744197,
        userId: 4485554740750336,
        productId: 9,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367235,
        count: 2,
        price: 3998.0,
        payMethod: '微信支付',
        receiverName: '云天',
        receiverPhone: '18107124185',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T06:38:43.000+00:00',
        updateTime: '2024-04-21T06:38:44.000+00:00',
        payTime: '2024-04-21T06:39:19.000+00:00',
        isDelete: false,
      },
      {
        id: 2024538809119985733,
        userId: 4485554740750336,
        productId: 9,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367235,
        count: 10,
        price: 19990.0,
        payMethod: '余额支付',
        receiverName: '云天',
        receiverPhone: '18107124185',
        receiverAddress: 'xx便利店',
        status: 1,
        createTime: '2024-04-21T06:39:58.000+00:00',
        updateTime: '2024-04-21T06:39:59.000+00:00',
        payTime: '2024-04-21T06:41:34.000+00:00',
        isDelete: false,
      },
      {
        id: 2024538815322660933,
        userId: 4485554740750336,
        productId: 9,
        productName: '酒',
        productCover:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
        infoId: 1781315868966367235,
        count: 2,
        price: 3998.0,
        payMethod: null,
        receiverName: '云天',
        receiverPhone: '18107124185',
        receiverAddress: 'xx便利店',
        status: 0,
        createTime: '2024-04-21T07:05:12.000+00:00',
        updateTime: '2024-04-21T07:05:14.000+00:00',
        payTime: null,
        isDelete: false,
      },
    ],
  },
  /**
   * 用户查询所有分类
   */
  'GET /user/api/v1/channel/getChannel': {
    code: 0,
    msg: '操作成功',
    data: [
      {
        id: 3,
        channelName: '特卖促销',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 4,
        channelName: '进口水果',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 5,
        channelName: '有机食品',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 6,
        channelName: '特色美食',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 7,
        channelName: '肉类主食',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 8,
        channelName: '乳制零食',
        channelLogo:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BBlogo.png',
        status: null,
        ordered: null,
        description: null,
      },
      {
        id: 16,
        channelName: '手机111',
        channelLogo: '1.png',
        status: null,
        ordered: null,
        description: null,
      },
    ],
  },
  // 'GET /user/api/v1/product/page': {
  //   code: 0,
  //   msg: '操作成功',
  //   data: {
  //     productList: [
  //       {
  //         id: 6,
  //         name: '黄瓜',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 2.98,
  //         isOver: true,
  //       },
  //       {
  //         id: 5,
  //         name: '西瓜',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 3.98,
  //         isOver: false,
  //       },
  //       {
  //         id: 4,
  //         name: '草莓',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 18.88,
  //         isOver: false,
  //       },
  //       {
  //         id: 3,
  //         name: '橙子',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 8.98,
  //         isOver: true,
  //       },
  //       {
  //         id: 2,
  //         name: '香蕉',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 7.98,
  //         isOver: true,
  //       },
  //       {
  //         id: 8,
  //         name: '大红苹果',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 6,
  //         isOver: false,
  //       },
  //     ],
  //   },
  // },
  'GET /user/api/v1/product/page': (req: any, res) => {
    const { page } = req.query // 从请求查询中获取page参数
    console.log(page)
    let productList
    if (page == '3') {
      // 如果page等于3，设置hotProductList为空数组
      productList = []
    } else {
      // 否则，设置hotProductList为原始的产品列表
      productList = [
        {
          id: 6,
          name: '黄瓜',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 2.98,
          isOver: true,
        },
        {
          id: 5,
          name: '西瓜',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 3.98,
          isOver: false,
        },
        {
          id: 4,
          name: '草莓',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 18.88,
          isOver: false,
        },
        {
          id: 3,
          name: '橙子',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 8.98,
          isOver: true,
        },
        {
          id: 2,
          name: '香蕉',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 7.98,
          isOver: true,
        },
        {
          id: 8,
          name: '大红苹果',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 6,
          isOver: false,
        },
      ]
    }
    res.json({
      code: 0,
      message: 'success',
      data: productList,
    })
    // res.status(401).json({
    //   code: -1,
    //   message: 'token过期，请重新登录',
    //   data: {},
    // })
  },
  /**
   * 获取热榜商品
   */
  'GET /user/api/v1/product/hot': {
    code: 0,
    msg: '操作成功',
    data: {
      hotProductList: [
        {
          id: 2,
          name: '香蕉',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 7.98,
          isOver: false,
          score: null,
        },
        {
          id: 3,
          name: '橙子',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 8.98,
          isOver: false,
          score: null,
        },
        {
          id: 4,
          name: '草莓',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 18.88,
          isOver: false,
          score: null,
        },
        {
          id: 5,
          name: '西瓜',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 3.98,
          isOver: false,
          score: null,
        },
        {
          id: 6,
          name: '黄瓜',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 2.98,
          isOver: false,
          score: null,
        },
        {
          id: 8,
          name: '大红苹果',
          coverUrl:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
          price: 6,
          isOver: false,
          score: null,
        },
      ],
    },
  },
  // 'GET /user/api/v1/product/hot': {
  //   code: 0,
  //   msg: '操作成功',
  //   data: {
  //     hotProductList: [
  //       {
  //         id: 2,
  //         name: '香蕉',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 7.98,
  //         isOver: false,
  //         score: null,
  //       },
  //       {
  //         id: 3,
  //         name: '橙子',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 8.98,
  //         isOver: false,
  //         score: null,
  //       },
  //       {
  //         id: 4,
  //         name: '草莓',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 18.88,
  //         isOver: false,
  //         score: null,
  //       },
  //       {
  //         id: 5,
  //         name: '西瓜',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 3.98,
  //         isOver: false,
  //         score: null,
  //       },
  //       {
  //         id: 6,
  //         name: '黄瓜',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 2.98,
  //         isOver: false,
  //         score: null,
  //       },
  //       {
  //         id: 8,
  //         name: '大红苹果',
  //         coverUrl:
  //           'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         price: 6,
  //         isOver: false,
  //         score: null,
  //       },
  //     ],
  //   },
  // },
  /**
   * 用户注册
   */
  'POST /user/api/v1/info/register': {
    code: 0,
    msg: 'success',
    data: null,
  },
  /**
   * 用户登录
   */
  'POST /user/api/v1/info/login': {
    code: 0,
    msg: 'success',
    data: {
      token:
        'eyJhbGciOiJIUzUxMiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAADXLSwoDIRBF0b3UuAXLttTq3fgLGAhItElCk72nHGT2Do97wX02OCAnbbgaVgYxKhsKKy6ZlY-3bJGRdU6wQYsTDvS4O4NEtME4k9TjM2Z9rH8M4esUPoXxLMLYu-z67v-UcKWtLAd0wWq9GyJP2lH4_gBxw47UkwAAAA.YhvUuA6EhgRkSevHwU_nzkAOJ_WFlrEWisqY-y0sq5JiLUuuCMQj_UDK-bjXTAWiK_tYBt8VMSNC9xzABc5mPQ',
    },
  },
  /**
   * 用户修改信息
   */
  'PUT /user/api/v1/info/update': {
    code: 0,
    msg: 'success',
    data: 'SUCCESS',
  },
  /**
   * 返回用户信息
   */
  'GET /user/api/v1/info/detail': {
    code: 0,
    msg: 'success',
    data: {
      avatar: 'http://dummyimage.com/100x100',
      nickname: '姚明',
      sex: '男',
      realName: '术备际',
      phone: '18655454598',
      amount: 1000,
    },
  },
  /**
   * 新增收藏
   */
  'POST /user/api/v1/collect/add': {
    code: 0,
    msg: 'success',
    data: null,
  },
  /**
   * 取消收藏
   */
  'DELETE /user/api/v1/collect/delete': {
    code: 0,
    msg: 'success',
    data: null,
  },
  /**
   * 返回收藏列表
   */
  'GET /user/api/v1/collect/show': {
    code: 0,
    msg: 'success',
    data: [
      {
        id: 1,
        name: '香蕉',
        price: 7.98,
        coverUrl:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
        isOver: null,
      },
      {
        id: 2,
        name: '橙子',
        price: 8.98,
        coverUrl:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
        isOver: null,
      },
      {
        id: 3,
        name: '香蕉',
        price: 7.98,
        coverUrl:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
        isOver: null,
      },
      {
        id: 43,
        name: '橙子',
        price: 8.98,
        coverUrl:
          'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
        isOver: null,
      },
    ],
  },
  /**
   * 用户上传头像
   */
  'POST /user/api/v1/common/upload': {
    code: 0,
    msg: '操作成功',
    data: {
      url: 'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
    },
  },
  /**
   * 用户根据Id查询商品详情
   */
  // 'GET /user/api/v1/product/:id': {
  //   code: 0,
  //   msg: '操作成功',
  //   data: {
  //     productDetail: {
  //       id: 1,
  //       name: '苹果',
  //       coverUrl:
  //         'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //       price: 10.98,
  //       isOver: false,
  //       isCollect: false,
  //       description: '山东红富士苹果 贱卖',
  //       imgs: [
  //         'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //         'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
  //       ],
  //       weight: 3,
  //       unit: 'kg',
  //       note: '山东一手货源',
  //       content: '<p>好得很</p>',
  //     },
  //   },
  // },
}
